package com.buba.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import entity.system.SupplierManagement;
import com.buba.mapper.SupplierManagementMapper;
import com.buba.service.SupplierManagementService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 供应商管理信息表 服务实现类
 * </p>
 *
 * @author beisheng
 * @since 2023-05-18
 */
@Service
public class SupplierManagementServiceImpl extends ServiceImpl<SupplierManagementMapper, SupplierManagement> implements SupplierManagementService {
    @Autowired
    private SupplierManagementMapper supplierManagementMapper;
    /**
     * @Author atlong
     * @Description 查询供应商列表信息
     * @Date 2023/6/5 14:58
     * @Param []
     * @return java.util.List<entity.system.SupplierManagement>
     **/
    @Override
    public List<SupplierManagement> selAllSuppliers() {
        QueryWrapper<SupplierManagement> wrapper = new QueryWrapper<>();
        wrapper.eq("delete_flag",0);
        wrapper.eq("status",1);
        return supplierManagementMapper.selectList(wrapper);

    }
}
